######################################
# SUNXI Flash Tool
######################################
MKSUNXI = tools/sunxi/mksunxi/mksunxi.exe
SUNXI_FEL = tools/sunxi/sunxi-fel/sunxi-fel.exe


all: $(MKSUNXI)
	@echo "Make sunxi flash image"
	$(MKSUNXI) $(BIN)
	@echo "Write sunxi flash image"
	$(SUNXI_FEL) -p spiflash-write 0 $(BIN)


$(MKSUNXI):
	$(MAKE) -C $(dir $(MKSUNXI))
